<template>
	<view class="container">
		<view class="top_text" v-if="names != null">
			<view class="srcImg">
				<image src="/static/image/personages.png" mode="aspectFit"></image>
			</view>
			<textarea auto-height v-model="names" disabled/>
		</view>
		<view class="con_write_txt">
			<textarea auto-height disabled class="write_txt" v-model="txtContent"></textarea>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				names:'',
				txtContent:''
			}
		},
		onLoad(item) {
			this.names = item.names;
			this.txtContent = item.content
		},
		methods: {}
	}
</script>

<style lang="scss">
	page {
		background-color: #fdfdfd;
	}

	.container {
		width: 100%;
	}

	.top_text {
		margin: 2% 0;
		display: flex;
		.srcImg{
			width: 48rpx;
			height: 48rpx;
			margin: 0 3%;
			image{
				width: 100%;
				height: 100%;
			}
		}
		textarea{
			width: 80%;
			padding: 0 2%;
			border: 1px solid #cfcfcf;
			border-radius: 8px;
			font-size: 32rpx;
			color: #000000;
		}
	}

	.con_write_txt {
		border-top: 1px solid #cecece;
		padding: 2% 2% 0 2%;
		font-size: 32rpx;
		color: #000000;
	}
</style>

